<?php
require_once ("src/db/connectdatabase.php");

function getBankLoan($id) {
	$con = new ConnectDB();
	$tbl = "banksloan";
	$fn = array('dac_tinh_loan', 'object_dk_loan', 'thu_tuc_loan', 'bankid', 'bankname', 'banklogo');
	$fcon = array('bankloan_id' => $id);
	return $con -> getvalue($tbl,$fn,$fcon);
}

if(isset($_GET['rep'])) {
	$id = $_GET['rep'];
	
	$arrbankloan = getBankLoan($id);
	if(count($arrbankloan) > 0) {
?>
<style>
div.product_tab_title {
    height: 35px;
    border-radius: 5px 5px 0px 0px;
    line-height: 35px;
    padding: 0px 10px 0px 20px;
    overflow: hidden;
	background: #8EAE49;
}

SPAN.product_tab_title {
    color: rgb(255, 255, 255);
    font-weight: bold;
    text-transform: uppercase;
}

DIV.product_detail_related {
    border-right: 1px solid #8EAE49;
    border-width: medium 1px 1px;
    border-style: none solid solid;
    border-color: #8EAE49 #8EAE49;
    border-top-colors: none;
    border-right-colors: none;
    border-bottom-colors: none;
    border-left-colors: none;
    border-image: none;
    border-radius: 0px 0px 5px 5px;
    padding: 10px;
    background-color: rgb(255, 255, 255);
    position: relative;
}

DIV.product_content_part {
    padding-bottom: 15px;
	
    padding-left: 10px;
}

P.product_detail_title_tab {
    margin: 0px;
    padding-bottom: 10px;
    color: #8EAE49;
    font-size: 13px;
    font-weight: bold;
}
</style>
<div class="text12" style="margin: auto; width: 970px; height: 11px; margin-top: 11px; color: #0a8bd9;">
	<u><a href="<?php echo($host) ?>" class="text12" style="color: #0080d6;">Trang Chủ</a></u>&gt; <a class="text12" style="color: #4c4c4c;">Chi tiết sản phẩm</a></span>
</div>
<div style="clear:both; height:15px;"></div>
<div class="intrl_txt" style="margin: auto;">
    <div style="float: left; width: 660px; margin-top: 10px; clear: right;">
    	<div class="product_tab_title"><span class="product_tab_title"><?php echo($arrbankloan[0][4]) ?></span></div>
        <div class="product_detail_related">
        	<div class="product_content_part">
            	<p class="product_detail_title_tab">Đặc Tính</p>
                <span style="font-size: 9pt;"><?php echo($arrbankloan[0][0]) ?></span>
            </div>
            <div class="product_content_part">
            	<p class="product_detail_title_tab">Đối Tượng - Điều Kiện Vay</p>
                <span style="font-size: 9pt;"><?php echo($arrbankloan[0][1]) ?></span>
            </div>
            <div class="product_content_part">
            	<p class="product_detail_title_tab">Thủ Tục Vay Vốn</p>
                <span style="font-size: 9pt;"><?php echo($arrbankloan[0][2]) ?></span>
            </div>
        </div>
    </div>
    
    <div style="float: right; clear: right; width: 275px; height: auto; margin-top: 10px;">
        <?php include("formsendapplyloan.php"); ?>
    </div>
</div>
<?php
	}
}
?>